package com.scpii.api.service.user.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.scpii.api.domain.user.UserLinks;
import com.scpii.api.persistence.user.UserLinksMapper;
import com.scpii.api.service.user.UserlinksService;

@Service
public class UserLinksServiceImpl implements UserlinksService {

	@Resource
	private UserLinksMapper userLinksMapper;

	@Override
	public UserLinks selectBySelective(UserLinks record) {
		return userLinksMapper.selectBySelective(record);
	}

	@Override
	public void insertSelective(UserLinks record) {
		userLinksMapper.insertSelective(record);
	}

	@Override
	public void updateByPrimaryKeySelective(UserLinks record) {
		userLinksMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public void deleteByPrimaryKey(Long id) {
		userLinksMapper.deleteByPrimaryKey(id);
	}

	@Override
	public UserLinks selectAppUserLinks(Long appId, String provider,
			String loginName) {
		return userLinksMapper.selectAppUserLinks(appId, provider, loginName);
	}
}
